using System;
using System.Collections.Generic;
using System.Linq;

namespace ibba.src.noriskbo.ServiceCorporativo
{
    public partial class ClienteRisco
    {
        public string FormatCPFouCNPJ
        {
            get 
            { 
                if (this.TipoPessoa.Equals("F", StringComparison.CurrentCultureIgnoreCase))
                    return Convert.ToDouble(this.CnpjCpf).ToString(@"000\.000\.000\-00");
                else
                    return Convert.ToDouble(this.CnpjCpf).ToString(@"000\.000\.000\/0000\-00");
            }
        }
        
    }
}
